﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Util
{
    public class Key
    {
        public Key(string book, int chapter, int verse)
        {
            Book = book;
            Chapter = chapter;
            Verse = verse;
        }
        public string Book { get; set; }
        public int Chapter { get; set; }
        public int Verse { get; set; }

        public int Length
        {
            get
            {
                return string.Format("{0} {1}:{2}", Book, Chapter, Verse).Length;
            }
        }

        public override string ToString()
        {
            return string.Format("{0} {1}:{2}", Book, Chapter, Verse);
        }
    }
}
